using System;
using System.IO;

namespace Tyng.Data.Utilities
{
	public class Script
	{
		Database _db;
		string _script;
		string _file;
		DateTime _lastModified;

		internal Script(Database db, string sourceFilePath, DateTime lastModified, string script)
		{
			_file = sourceFilePath;
			_lastModified = lastModified;
			_db = db;
			_script = script;
		}

		public Database Database { get { return _db; } }
		public string Text { get { return _script; } }
		public string SourceFilePath { get { return _file; } }
		public string SourceFileName { get { return Path.GetFileName(_file); } }
		public DateTime LastModified { get { return _lastModified; } }
	}
}
